<template>
    <el-container>
        <el-header style="background: #fff;padding: 20px 0;">
            <span style="font-size: 30px;font-weight: bold;">redis web 可视化管理平台</span>
        </el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-container>
                <el-main>
                    <router-view></router-view>
                </el-main>
                <el-footer>
                    <div style="text-align: center;font-size: 12px;color: #8c939d">
                        Copyright © 2018 Systems Incorporated. All rights
                        reserved.
                    </div>
                </el-footer>
            </el-container>
        </el-container>
    </el-container>
</template>
<script type="text/ecmascript-6">
    /* eslint-disable */

    export default {
        name: "fvMain",
        data() {
            return {
                isCommon: false,
                menuCommon: [],
                PasswordDialogVisible: false,
                user: undefined,
                pageData: {
                    models: [],
                    pager: {
                        title: '',
                        page_size: 10,
                        page_num: 0,
                        page_count: 1
                    }
                },
            };
        },
        watch: {
            user: function (v, o) {
                // this.menuData = listPid(this.user.auth);
            }
        },
        mounted() {
            let _this = this;
        },
        methods: {
            logout() {
                let _this = this;
                _this.$store.commit('logout');
                _this.$ajax.get(this.$URL.logout);
                _this.$router.push({path: "/login"});
            },
        }
    }
</script>
